package cn.appsys.service.impl;

import cn.appsys.mapper.appInfo.AppInfoMapper;
import cn.appsys.pojo.AppInfo;
import cn.appsys.service.AppInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Transactional
@Service
public class AppInfoServiceimpl implements AppInfoService {
    @Resource
    AppInfoMapper appInfoMapper;

    @Override
    public AppInfo getAppInfoView(int appinfoid) {
        return appInfoMapper.getAppInfo(appinfoid);
    }


    @Override
    public int checkApp(int status, int id) {
        return appInfoMapper.checkApp(status,id);
    }

    @Override
    public int updateAppVersion(Integer appId, Integer versionId) {
        return appInfoMapper.updateAppVersion(appId,versionId);
    }

    @Override
    public int selectApkNameCount(String apkName) {
        return appInfoMapper.selectApkNameCount(apkName);
    }

    @Override
    public int addAppInfo(AppInfo appInfo) {
        return appInfoMapper.addAppInfo(appInfo);
    }

    @Override
    public int doAppUpdate(AppInfo appInfo) {
        return appInfoMapper.doAppUpdate(appInfo);
    }

    @Override
    public int updateFile(int id) {
        return appInfoMapper.updateFile(id);
    }

    @Override
    public int delAppInfo(Integer appId) {
        return appInfoMapper.delAppInfo(appId);
    }

    @Override
    public int putawayApp(Integer appId, Integer status) {
        return appInfoMapper.putawayApp(appId,status);
    }
}
